package com.woniuxy.oa;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.woniuxy.oa.entity.Department;
import com.woniuxy.oa.entity.Employee;
import com.woniuxy.oa.entity.Job;
import com.woniuxy.oa.entity.Personnel;
import com.woniuxy.oa.exception.EmployeeException;
import com.woniuxy.oa.exception.UsernameException;
import com.woniuxy.oa.mapper.DepartmentMapper;
import com.woniuxy.oa.mapper.EmployeeMapper;
import com.woniuxy.oa.mapper.JobMapper;
import com.woniuxy.oa.mapper.PersonnelMapper;
import com.woniuxy.oa.utils.RegexUtil;

@RunWith(SpringRunner.class)
@SpringBootTest
public class CommonTests2 {

	@Test
	public void contextLoads() {
		System.out.println(RegexUtil.isChinese("男男女女女"));
		System.out.println(RegexUtil.isChinese("女，"));
	}
	@Test
	public void testClaa() {
//		Exception e = new UsernameException();
//		System.out.println(e instanceof EmployeeException);
//		System.out.println(e.getClass().getSimpleName());
		System.out.println(new Date());
		System.out.println(Calendar.getInstance().getTime());
	}

}
